<?php

/**
 * description
 */
class BackendApplicationFormFilter extends ApplicationFormFilter
{
  /**
   * description
   */
  public function configure()
  {
    $this->widgetSchema['account']    = new sfWidgetFormInputText();
    $this->validatorSchema['account'] = new sfValidatorPass();
  }

  public function addAccountColumnQuery($query, $field, $values)
  {
    $query->addWhere('c.account like ?', "%$values%");
  }
}
